﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace Demo.Web
{

  public class ProductList : List<Product>
	{
	}

	public class Product
	{
		[Key()]
		[Required]
		public Guid ProductID { get; set; }
		[Required]
		[StringLength(50)]
		public string Name  { get; set; }
		[Required]
		[StringLength(25)]
		public string ProductNumber   { get; set; }
		[StringLength(15)]
		public string Color  { get; set; }
		public decimal StandardCost   { get; set; }
		public decimal ListPrice   { get; set; }
		public int Size  { get; set; }
		public decimal Weight { get; set; } //decimal
		public DateTime SellStartDate   { get; set; }
	}
}
